<template>
  <el-link
    @click="click"
    type="warning"
  >
    {{ name }}
  </el-link>
</template>

<script>
  export default {
    name: 'Annex',
    props: {
      url: {
        type: String,
        default: ''
      },
      name: {
        type: String,
        default: ''
      }
    },
    methods: {
      click () {
        window.open(this.url)
      }
    }
  }
</script>

<style scoped>

</style>
